package com.refusea.commons.utils

/**
 * @author Zhang Yan
 * @date 2023/5/19
 **/
object Systems {

    private val os: String = try {
        System.getProperty("os.name")
    } catch (ex: SecurityException) {
        "UNKNOWN"
    }

    @JvmStatic
    val IS_OS_LINUX = os.startsWith("Linux") || os.startsWith("LINUX")

    @JvmStatic
    val IS_OS_MAC = os.startsWith("Mac")

    @JvmStatic
    val IS_OS_WINDOWS = os.startsWith("Windows")
}
